/**
* \file GUIContext.cpp
* \brief GUIContext decleration class for windows plugin
* \author Edouard ROGE
* \date 24 Novembre 2013
*/

#include "Application/Application.h"
#include "Core/Profile/Profiler.h"
#include "Core/Profile/CodeProfile.h"
#include "GUIContext.h"

namespace GUI
{
	namespace Win32
	{
		GUIContext::GUIContext() : m_logFile("../data/GUI.log")
		{
			Core::Profile::Profiler::GetInstance().SetOutputFilename("../data/GUI.profile");
		}

		GUIContext::~GUIContext()
		{
		}

		Core::GUI::IApplication * GUIContext::CreateApplication(int argc, char *argv[])
		{
			return new Application();
		}

		void GUIContext::DestroyApplication(Core::GUI::IApplication * _pApplication)
		{
			if (_pApplication)
			{
				delete (Application*)_pApplication;
			}
		}
	}
}